package com.zlc.workflow.core.instance.model;

import com.zlc.workflow.constant.TaskActionEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class WorkflowAction {

    public WorkflowAction(TaskActionEnum actionEnum){
        this.action = actionEnum.getType();
        this.actionName = actionEnum.getDesc();
    }

    /**
     * 动作
     */
    @ApiModelProperty(value = "动作")
    private String action;

    @ApiModelProperty(value = "动作名称")
    private String actionName;

}
